package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.Appliance;
import com.ruoyi.system.domain.Requisitions;

/**
 * 器具租赁Mapper接口
 * 
 * @author ruoyi
 * @date 2021-04-29
 */
public interface ApplianceMapper 
{
    /**
     * 查询器具租赁列表
     * 
     * @param appliance 器具租赁
     * @return 器具租赁集合
     */
    public List<Appliance> selectApplianceList(Appliance appliance);

    //新增器具
    public int insertAppliance(Appliance appliance);

    //新增器具租赁单
    public int insertRequisitions(Requisitions requisitions);

    // 修改器具租赁
    public int updateAppliance(Appliance appliance);

    //修改器具单
    public int updateRequisitions(Requisitions requisitions);

    /**
     * 删除器具租赁
     * 
     * @param id 器具租赁ID
     * @return 结果
     */
    public int deleteApplianceById(Long id);

    //根据rid单条删除器具单
    public int deleteApplianceByrId(Long id);

    //单条删除租赁单
    public int deleteRequisitionsById(Long id);


    //查询租赁列表
    List<Requisitions> queryApplianceList(Requisitions requisitions);

    //查询单条租赁详情
    Requisitions queryApplianceListById(Long id);

    //查询原有的请购单
    Requisitions selectAppliance(Long appliId);
}
